<template>
<div>
  <h1>电影详情</h1>
  <table>
    <tr>
      <td>电影</td>
      <td>演员</td>
    </tr>
    <tr>
      <td>{{list.name}}</td>
      <td>
        <router-link :to="{path:'/actor',query:{actor:list.actor}}">{{list.actor}}</router-link>
      </td>
    </tr>
  </table>



</div>

</template>

<script>
export default {
  name: "dy_xq",
  data(){
    return{
      list:{},
      id:this.$route.query.id
    }
  },
  methods:{
    show_dy(){
      this.$axios.get('users/Diany_API/?id='+this.id)
      .then(i=>{
        this.list = i.data.list
      })

    }
  },
  mounted() {
    this.show_dy()
  }
}
</script>

<style scoped>

</style>
